package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 client_profile
 * 
 * @author ruoyi
 * @date 2024-09-24
 */
public class ClientProfile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户档案ID */
    private Long profileId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long clientId;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatar;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateOfBirth;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 默认地址ID */
    @Excel(name = "默认地址ID")
    private Long addressId;

    /** 用户偏好设置 */
    @Excel(name = "用户偏好设置")
    private String preferences;

    public void setProfileId(Long profileId) 
    {
        this.profileId = profileId;
    }

    public Long getProfileId() 
    {
        return profileId;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setDateOfBirth(Date dateOfBirth) 
    {
        this.dateOfBirth = dateOfBirth;
    }

    public Date getDateOfBirth() 
    {
        return dateOfBirth;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setPreferences(String preferences) 
    {
        this.preferences = preferences;
    }

    public String getPreferences() 
    {
        return preferences;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("profileId", getProfileId())
            .append("clientId", getClientId())
            .append("avatar", getAvatar())
            .append("dateOfBirth", getDateOfBirth())
            .append("gender", getGender())
            .append("addressId", getAddressId())
            .append("preferences", getPreferences())
            .toString();
    }
}
